Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Permanently delete a user account from the system. This action cannot be undone. All associated data including favorite obras will be cascade deleted.Authentication
Requires a valid JWT token with admin role.Path Parameters
The unique identifier of the user to delete
Response
Returns a confirmation message upon successful deletion.Confirmation message: “Usuario eliminado correctamente”
Example Request
cURL
Example Response
200 Success
400 Bad Request
403 Forbidden
404 Not Found
Authorization Rules
- JWT token must be valid and not expired
- User role must be exactly
admin - Non-admin users attempting this request will receive 403 Forbidden
- The user must exist in the database or 404 will be returned
Important Notes
The deletion is permanent and cannot be undone. Consider deactivating users instead by settingisActive: false if you need to maintain data integrity.
Implementation
See the delete logic in:- Controller:
/home/daytona/workspace/source/src/users/users.controller.ts:72 - Service:
/home/daytona/workspace/source/src/users/users.service.ts:85